package com.wisdytech.linkdcs.equipment.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author Yanghu
 * @since 2017-09-16
 */
@TableName("tt_eq_collection_param")
public class CollectionParam extends Model<CollectionParam> {

	private static final long serialVersionUID = 1L;
	
    @TableId("PK_ID")
	private String pkId;
    
    @TableId("COLLECTION_CLIENT_ID")
	private String collectionClientId;
	/**
	 * 采集参数编号
	 */
	@TableField("PARAM_CODE")
	private String paramCode;
	
	/**
	 * 采集参数名称
	 */
	@TableField("PARAM_NAME")
	private String paramName;
	/**
	 * 采集参数id
	 */
	@TableField(exist=false)
	private String paramId;
	
	/**
	 * 采集项类别
	 */
	@TableField("PARAM_TYPE")
	private String paramType;
	
	/**
	 * 工序
	 */
	@TableField("OPERATION_ID")
	private String operationId;
	/**
	 * 工序名称
	 */
	@TableField(exist=false)
	private String operationName;
	
	/**
	 * PLC地址
	 */
	@TableField("PLC_ADDR")
	private String plcAddr;
	
	
	/**
	 * 工艺范围（单位）
	 */
	@TableField("PROCESS_RANGE")
	private String processRange;
	
    
	/**
	 * 参数可视化类别
	 */
	@TableField("SHOW_LEVEL")
	private String showLevel;
	
	/**
	 * 缩放比例
	 */
	@TableField("ENLARGE_NUM")
	private Double enlargeNum;
	
	/**
	 * 数据类型
	 */
	@TableField("DATA_TYPE")
	private String dataType;
	
	/**
	 * 仪表盘最小值
	 */
	@TableField("start_value")
	private double startValue;
	
	/**
	 * 仪表盘最大值
	 */
	@TableField("end_value")
	private double endValue;
	
	/**
	 * 正常最小临界值
	 */
	@TableField("start_threshold")
	private double startThreshold;
	
	/**
	 * 正常最大临界值
	 */
	@TableField("end_threshold")
	private double endThreshold;
	
	/***
	 * spc标准值
	 */
	@TableField("spc_value")
	private BigDecimal spcValue;
	
	
	/**
	 * 读写属性
	 */
	@TableField("rw_attr")
	private Integer rwAttr;
	
	/**
	 * 设备类别编号
	 */
	@TableField(exist=false)
	private String modelCode;
	/**
	 * 设备类型
	 */
	@TableField(exist=false)
	private String modelType;
	
	/**
	 * 是否自动告警标记  0 否 1是
	 */
	@TableField("IS_AUTO_ALARM")
	private String isAutoAlarm;
	
	/**
	 * 告警名称定义
	 */
	@TableField("AUTO_ALARM_NAME")
	private String autoAlarmName;
	

    /**
     * 删除标记
     */
    @TableField("DEL_FLAG")
    private String delFlag;
    /**
     * 记录创建人
     */
    @TableField("CREATE_USER")
    private String createUser;
    /**
     * 记录创建时间
     */
    @TableField("CREATE_DATE")
    private Date createDate;
    /**
     * 记录更新人
     */
    @TableField("UPDATE_USER")
    private String updateUser;
    /**
     * 记录更新时间
     */
    @TableField("UPDATE_DATE")
    private Date updateDate;
    /**
     * 备注
     */
    @TableField("REMARK")
    private String remark;
    
    /**取多少位*/
    @TableField("DATA_LENGTH")
    private int dataLength;
    
    /**dcs参数名*/
    @TableField("PARAM_FIELD")
    private String paramField;
    
    /**保留小数位*/
    @TableField("DECIMAL_POS")
    private int DecimalPos;
    
    @TableField("ALARM_CODE")
    private String alarmCode;
    
    
    
    
    @TableField("database_param_addr")
    private String databaseParamAddr;
    
    @TableField("upper_definition")
    private String upperDefinition;
    
    @TableField("upper_param_name")
    private String upperParamName;
    
    @TableField("upper_param_field")
    private String upperParamField;
    
//    @TableField("file_addr")
//    private String fileAddr;
    
    @TableField("file_name")
    private String fileName;
    
    @TableField("file_type")
    private String fileType;
    
    @TableField("file_column")
    private String fileColumn;
    
    @TableField("file_ignore_first")
    private String fileIgnoreFirst;
    
    @TableField("collection_type")
    private String collectionType;
    
    
    
    
    public String getAlarmCode() {
		return alarmCode;
	}

	public void setAlarmCode(String alarmCode) {
		this.alarmCode = alarmCode;
	}

	public int getDataLength() {
		return dataLength;
	}

	public void setDataLength(int dataLength) {
		this.dataLength = dataLength;
	}

	public String getParamField() {
		return paramField;
	}

	public void setParamField(String paramField) {
		this.paramField = paramField;
	}

	public int getDecimalPos() {
		return DecimalPos;
	}

	public void setDecimalPos(int decimalPos) {
		DecimalPos = decimalPos;
	}

	public BigDecimal getSpcValue() {
		return spcValue;
	}

	public void setSpcValue(BigDecimal spcValue) {
		this.spcValue = spcValue;
	}

	public String getCollectionType() {
		return collectionType;
	}

	public void setCollectionType(String collectionType) {
		this.collectionType = collectionType;
	}

	public String getDatabaseParamAddr() {
		return databaseParamAddr;
	}

	public void setDatabaseParamAddr(String databaseParamAddr) {
		this.databaseParamAddr = databaseParamAddr;
	}

	public String getUpperDefinition() {
		return upperDefinition;
	}

	public void setUpperDefinition(String upperDefinition) {
		this.upperDefinition = upperDefinition;
	}

	public String getUpperParamName() {
		return upperParamName;
	}

	public void setUpperParamName(String upperParamName) {
		this.upperParamName = upperParamName;
	}

	public String getUpperParamField() {
		return upperParamField;
	}

	public void setUpperParamField(String upperParamField) {
		this.upperParamField = upperParamField;
	}


	public String getFileName() {
		return fileName;
	}

	public void setFileName(String fileName) {
		this.fileName = fileName;
	}

//	public String getFileAddr() {
//		return fileAddr;
//	}
//
//	public void setFileAddr(String fileAddr) {
//		this.fileAddr = fileAddr;
//	}

	public String getFileType() {
		return fileType;
	}

	public void setFileType(String fileType) {
		this.fileType = fileType;
	}

	public String getFileColumn() {
		return fileColumn;
	}

	public void setFileColumn(String fileColumn) {
		this.fileColumn = fileColumn;
	}

	public String getFileIgnoreFirst() {
		return fileIgnoreFirst;
	}

	public void setFileIgnoreFirst(String fileIgnoreFirst) {
		this.fileIgnoreFirst = fileIgnoreFirst;
	}

	public String getShowLevel() {
        return showLevel;
    }

    public void setShowLevel(String showLevel) {
        this.showLevel = showLevel;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public String getUpdateUser() {
        return updateUser;
    }

    public void setUpdateUser(String updateUser) {
        this.updateUser = updateUser;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getPkId() {
		return pkId;
	}

	public void setPkId(String pkId) {
		this.pkId = pkId;
	}

	public String getCollectionClientId() {
		return collectionClientId;
	}

	public void setCollectionClientId(String collectionClientId) {
		this.collectionClientId = collectionClientId;
	}

	public String getParamName() {
		return paramName;
	}

	public void setParamName(String paramName) {
		this.paramName = paramName;
	}

	
	public String getModelCode() {
        return modelCode;
    }

    public void setModelCode(String modelCode) {
        this.modelCode = modelCode;
    }

    public String getModelType() {
        return modelType;
    }

    public void setModelType(String modelType) {
        this.modelType = modelType;
    }
    
	public String getOperationId() {
        return operationId;
    }

    public void setOperationId(String operationId) {
        this.operationId = operationId;
    }

    public String getPlcAddr() {
        return plcAddr;
    }

    public void setPlcAddr(String plcAddr) {
        this.plcAddr = plcAddr;
    }

    public String getProcessRange() {
        return processRange;
    }

    public void setProcessRange(String processRange) {
        this.processRange = processRange;
    }

   /* public String getRegisterAddr() {
        return registerAddr;
    }

    public void setRegisterAddr(String registerAddr) {
        this.registerAddr = registerAddr;
    }*/

    public String getOperationName() {
        return operationName;
    }

    public void setOperationName(String operationName) {
        this.operationName = operationName;
    }
    
    

    public String getParamId() {
        return paramId;
    }

    public void setParamId(String paramId) {
        this.paramId = paramId;
    }

    public String getIsAutoAlarm() {
        return isAutoAlarm;
    }

    public void setIsAutoAlarm(String isAutoAlarm) {
        this.isAutoAlarm = isAutoAlarm;
    }

    public String getAutoAlarmName() {
        return autoAlarmName;
    }

    public void setAutoAlarmName(String autoAlarmName) {
        this.autoAlarmName = autoAlarmName;
    }
    
    

    public Double getEnlargeNum() {
        return enlargeNum;
    }

    public void setEnlargeNum(Double enlargeNum) {
        this.enlargeNum = enlargeNum;
    }

    public String getDataType() {
        return dataType;
    }

    public void setDataType(String dataType) {
        this.dataType = dataType;
    }

    
	
	

	public double getStartValue() {
		return startValue;
	}

	public void setStartValue(double startValue) {
		this.startValue = startValue;
	}

	public double getEndValue() {
		return endValue;
	}

	public void setEndValue(double endValue) {
		this.endValue = endValue;
	}

	public double getStartThreshold() {
		return startThreshold;
	}

	public void setStartThreshold(double startThreshold) {
		this.startThreshold = startThreshold;
	}

	public double getEndThreshold() {
		return endThreshold;
	}

	public void setEndThreshold(double endThreshold) {
		this.endThreshold = endThreshold;
	}

	public Integer getRwAttr() {
		return rwAttr;
	}

	public void setRwAttr(Integer rwAttr) {
		this.rwAttr = rwAttr;
	}

	@Override
	protected Serializable pkVal() {
		return this.pkId;
	}

	public String getParamType() {
		return paramType;
	}

	public void setParamType(String paramType) {
		this.paramType = paramType;
	}

	public String getParamCode() {
		return paramCode;
	}

	public void setParamCode(String paramCode) {
		this.paramCode = paramCode;
	}

	
	

}
